﻿using System;
using System.Collections.Generic;
using System.Data;


namespace EZCRS.HCMS.Entity
{
    public class HCRS_Aircode
    {
        private int? _id;
        private string _name;
        private string _name_e;
        private string _code;
        private string _type;

        [DataFieldAttribute("id", "pk")]
        public int? id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string name_e
        {
            get { return _name_e; }
            set { _name_e = value; }
        }

        public string code
        {
            get { return _code; }
            set { _code = value; }
        }

        public string type
        {
            get { return _type; }
            set { _type = value; }
        }

        public HCRS_Aircode() { }

        public HCRS_Aircode(DataRow dr)
        {
            if (dr != null)
            {
                _id = Convert.ToInt32(dr["id"].ToString());
                _name = dr["name"].ToString();
                _name_e = dr["name_e"].ToString();
                _code = dr["code"].ToString();
                _type = dr["type"].ToString();
            }
        }
    }
}
